import { Layout, Job, PublishJob, Active, Login } from '../page';
import { BrowserRouter, useRoutes } from 'react-router-dom'

const routes = [{
	path: '/',
	element: <Layout></Layout>,
	children: [{
		path: '/',
		element: <Job></Job>
	},{
		path: '/active',
		element: <Active></Active>
	}]
},{
	path: '/publish/job',
	element: <PublishJob></PublishJob>
},{
	path: '/login',
	element: <Login></Login>
},]

const App = () => {
	const element = useRoutes(routes)
	return element
}

const Router = () => {
	return (
		<BrowserRouter>
			<App></App>
		</BrowserRouter>
	)
}

export default Router